package com.njitzx.service;

import com.alibaba.fastjson.JSONArray;
import com.njitzx.entity.dto.OrderPageDTO;
import com.njitzx.entity.po.Order;
import com.github.pagehelper.PageInfo;
import com.njitzx.entity.vo.OrderDetailVO;
import com.njitzx.entity.vo.OrderPageVO;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author 周鑫
 * @since 2024-08-20
 */
public interface OrderService {
    OrderPageVO findPage(OrderPageDTO orderPageDTO);

    List<OrderDetailVO> findById(Integer orderId);

    void add(Order order);

    void modify(Order order);

    void removeById(Serializable orderId);

    void modifyStatus(Integer orderId, Integer status);

    void sendOrder(Integer orderId, String no);

    void modifyAddress(Integer orderId, String address);

    Order selectByOrderNumber(String tradeNo);

    JSONArray queryOrder(String no);

    void reminder(Integer orderId);
}
